<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    <link rel="stylesheet" href="__PUBLIC__/css/pintuer.css">
    <link rel="stylesheet" href="__PUBLIC__/css/admin.css">
    <script src="__PUBLIC__/js/jquery.js"></script>
    <script src="__PUBLIC__/js/pintuer.js"></script> 
    <style>
.form-x .form-group .field{width:50%;}
 </style>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 网站信息</strong></div>
  <div class="body-content">
    <form method="post" enctype="multipart/form-data" class="form-x" action="__SELF__">
      <div class="form-group">
        <div class="label">
          <label>网站标题：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="data[web_title]" placeholder="请设置网站标题" value="{$data.web_title}" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>网站LOGO：</label>
        </div>
        <div class="field">
        <input type="hidden" name="_logo" value="{$data.web_logo}">
          <input type="file" id="url1" name="web_logo" class="input tips" style="width:25%; float:left;" value="" data-toggle="hover" data-place="right" data-image="__IMG__{$data.web_logo}"  />
          <input type="button" class="button bg-blue margin-left" id="image1" value="+ 浏览上传" >
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>缩略图尺寸：</label>
        </div>
        <div class="field">
        
          <input type="text" name="web_picsize[0]" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="宽度，如：300" class="input tips" style="width:25%; float:left;" value="{$picarr[0]}" />
          <input type="text" name="web_picsize[1]" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="高度 ，如：200" class="input tips" style="width:25%; float:left;margin-left:10px;" value="{$picarr[1]}" />
          
        </div>
      </div>
      
      
      <div class="form-group">
          <div class="label">
            <label>模板主题：</label>
          </div>
          <div class="field" style="width:50%">
            <select id="theme" name="data[web_theme]" class="input w50">
            <option value="default">默认主题</option>
            <foreach name="themedir" item="item">
            	<option value="{$item}">{$item}</option>
            </foreach>
            </select>
            <div class="tips"></div>
          </div>
      </div>
        
      <div class="form-group">
        <div class="label">
          <label>网站域名：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="data[web_domain]" placeholder="设置网站域名，如：www.baidu.com" value="{$data.web_domain}" />
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>移动端域名：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="data[web_mobile]" placeholder="设置网站域名，如：m.baidu.com" value="{$data.web_mobile}" />
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>副加标题：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="data[web_tit]" value="{$data.web_tit}" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>网站关键字：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="web_keyword" placeholder="每个关键字以逗号分隔" value="{$data.web_keyword}" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>网站描述：</label>
        </div>
        <div class="field">
          <textarea class="input" name="data[web_desc]">{$data.web_desc}</textarea>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>公司名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="data[web_company]" value="{$data.web_company}" />
          <div class="tips"></div>
        </div>
      </div>
     
      <div class="form-group">
        <div class="label">
          <label>电话：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="data[web_phone]" value="{$data.web_phone}" />
          <div class="tips"></div>
        </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>传真：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="data[web_fax]" value="{$data.web_fax}" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>QQ：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="data[web_qq]" value="{$data.web_qq}" />
          <div class="tips"></div>
        </div>
      </div>
     
      <div class="form-group">
        <div class="label">
          <label>Email：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="data[web_email]" value="{$data.web_email}" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>地址：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="data[web_address]" value="{$data.web_address}" />
          <div class="tips"></div>
        </div>
      </div>  
              
      <div class="form-group">
        <div class="label">
          <label>底部信息：</label>
        </div>
        <div class="field">
          <textarea name="data[web_copyright]" class="input" style="height:120px;">{$data.web_copyright}</textarea>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
<script type="text/javascript">
$("#theme").val("{$data.web_theme}")
</script>
</body></html>